python logging remove handler